check if can convert to float python

36

try:
    float(element)
except ValueError:
    print "Not a float"

Comments

Submit
0 Comments